<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .domeColor{
            color: skyblue;
        }
    </style>
</head>
<body>
    <form action="">
        <input type="text" class="another" id="another">
    </form>
    <ul class="list">
        <li><strong>list</strong> item 1 - one strong tag</li>
        <li><strong>list</strong> item <strong>2</strong> - two <span>strong tags</span></li>
        <li>list item 3</li>
        <li>list item 3</li>
        <li>list item 3</li>
    </ul>
    <script src="https://cdn.bootcss.com/jquery/3.4.1/jquery.min.js"></script>
    <script>
        let formIs = $("input[type='text']").parent().is('form');
        let formA = $('input[type=text]').is('#another');
        let formHas = $('input[type=text]').hasClass('another');
    </script>
</body>
</html>